package top.whysu.edevice.constant;

/**
 * 网络常量
 */
public final class NetConstant {
    /**
     * 系统名称
     */
    public static final String OS_NAME = "os.name";
    /**
     * LINUX系统名
     */
    public static final String LINUX_OS = "linux";
    /**
     * WINDOWS系统名
     */
    public static final String WINDOWS_OS = "windows";
    /**
     * 查询路由信息命令
     */
    public static final String IP_ROUTE_SHOW = "ip route show";
    /**
     * 默认路由关键字
     */
    public static final String DEFAULT_VIA = "default via";
    /**
     * LiNUX查看网卡信息命令
     */
    public static final String IFCONFIG = "ifconfig";
    /**
     * 子网掩码关键字
     */
    public static final String MASK = "netmask";
    /**
     * IP关键字
     */
    public static final String IP = "inet";
    /**
     * WINDOWS查看网卡信息命令
     */
    public static final String IPCONFIG_ALL = "ipconfig -all";
    /**
     * LiNUX查看DNS信息命令
     */
    public static final String DNS_SHOW = "cat /etc/resolv.conf";
    /**
     * 重启系统命令
     */
    public static final String REBOOT = "reboot";
	/**
     * DNS nameserver
     */
    public static final String NAME_SERVER = "nameserver";

}
